; based on: Example1.iss from Inno Setup Compiler examples

[Setup]
AppName=Traffic simulator
AppVersion=1.0
DefaultDirName={pf}\Traffic simulator
DefaultGroupName=Traffic simulator
Compression=lzma2
SolidCompression=yes
OutputDir=./

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "../Simulator/release/Simulator.exe"; DestDir: "{app}"; Flags: ignoreversion
;Source: "../Editor/release/Editor.exe"; DestDir: "{app}"; Flags: ignoreversion

;xml map (example)
Source: "../Simulator/sample_map.xml"; DestDir: "{app}"; Flags: ignoreversion

;libs
Source: "libs/QtCore4.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "libs/QtGui4.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "libs/QtXml4.dll"; DestDir: "{app}"; Flags: ignoreversion

;icon
Source: "icon.ico"; DestDir: "{app}"; Flags: ignoreversion

[Icons]
Name: "{group}\Simulator"; Filename: "{app}\Simulator.exe"; IconFilename: "{app}\icon.ico"; WorkingDir: "{app}"
Name: "{group}\Editor"; Filename: "{app}\Editor.exe"; WorkingDir: "{app}"
Name: "{group}\Project website"; Filename: "http://code.google.com/p/ca-traffic-simulator/"
Name: "{group}\Uninstall"; Filename: "{uninstallexe}"


Name: "{commondesktop}\Traffic simulator"; Filename: "{app}\Simulator.exe"; IconFilename: "{app}\icon.ico"; WorkingDir: "{app}"
Name: "{commondesktop}\Editor"; Filename: "{app}\Editor.exe"; WorkingDir: "{app}"

[Run]
Filename: "{app}\Simulator.exe"; Description: "{cm:LaunchProgram,{#StringChange('Traffic simulator', '&', '&&')}}"; Flags: nowait postinstall skipifsilent; WorkingDir: "{app}"

